home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / olrdrs / qwkndt1a.zip / FOSSIL.CHT < prev    next >
Text File  |  1988-02-11  |  39KB  |  354 lines

  1. FOSSIL Function Chart,  Version 5,  February 11,  1988                                                     Page 1
  2. Copyright (C) 1987, VEP Software, Naugatuck, CT 06770. All rights reserved.
  3. Copyright (C) 1988, Rick Moore,  Homewood,  IL, 60430. All rights reserved.
  4. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  5. | Code  |   Function    |  Function Parameters  |  Returned by Function | Explanation                           |
  6. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  7. |       |               |                       |                       |                                       |
  8. |  00h  | Set BaudRate  | AL = Baud/Parity/SB   | AX = Status bits      | BaudRate code in AL:                  |
  9. |       |               | DX = Port number      | (See function 03h)    | Bits [7:5] 000 = 19200, 001 = 38400,  |
  10. |       |               |     (NOP if DX=00FFh) |                       | 010 = 300, 011 = 600, 100 = 1200,     |
  11. |       |               |                       |                       | 101 = 2400, 110 = 4800, 111 = 9600.   |
  12. |       |               |                       |                       | Parity: [4:3] 00 or 10 = none,        |
  13. |       |               |                       |                       | 01 = odd, 11 = even.                  |
  14. |       |               |                       |                       | StopBits: [2:2] 0 = 1, 1 = 2          |
  15. |       |               |                       |                       | CharLength: 5 bits plus value [1:0]   |
  16. |       |               |                       |                       | Support for [4:0] = 00011 required of |
  17. |       |               |                       |                       | driver, others optional               |
  18. |       |               |                       |                       |                                       |
  19. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  20. |       |               |                       |                       |                                       |
  21. |  01h  | Transmit      | AL = Character        | AX = Status bits      | Character is queued for transmission. |
  22. |       | character     | DX = Port number      | (See function 03h)    | If there is room in the transmitter   |
  23. |       | (wait for     |     (NOP if DX=00FFh) |                       | buffer when this call is made, the    |
  24. |       |  room in the  |                       |                       | character will be stored and control  |
  25. |       |  buffer)      |                       |                       | returned to caller. If the buffer is  |
  26. |       |               |                       |                       | full, the driver will wait for room.  |
  27. |       |               |                       |                       | This can be dangerous when used in    |
  28. |       |               |                       |                       | combination with flow control (see    |
  29. |       |               |                       |                       | Function 0Fh)                         |
  30. |       |               |                       |                       |                                       |
  31. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  32. |       |               |                       |                       |                                       |
  33. |  02h  | Receive       | DX = Port number      | AH = 00h              | The next character in the input ring  |
  34. |       | character     |     (NOP if DX=00FFh) | AL = Input character  | buffer is returned to the caller. If  |
  35. |       | (wait for     |                       |                       | none available, the driver will wait  |
  36. |       | available)    |                       |                       | for input.                            |
  37. |       |               |                       |                       |                                       |
  38. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  39. |       |               |                       |                       |                                       |
  40. |  03h  | StatusRequest | DX = Port number      | AX = Status bits      | Bits are:                             |
  41. |       |               |     (NOP if DX=00FFh) |                       | AH[6:6] 1 = Output buffer empty       |
  42. |       |               |                       |                       | AH[5:5] 1 = Output buffer not full    |
  43. |       |               |                       |                       | AH[1:1] 1 = Input buffer overrun      |
  44. |       |               |                       |                       | AH[0:0] 1 = Characters in input buffer|
  45. |       |               |                       |                       | AL[7:7] 1 = Carrier Detect signal     |
  46. |       |               |                       |                       | AL[3:3] 1 = Always (never 0)          |
  47. |       |               |                       |                       |                                       |
  48. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  49. |       |               |                       |                       |                                       |
  50. |  04h  | Initialize    | DX = Port number      | AX = 1954h (success)  | Required before I/O can take place on |
  51. |       | driver (port) |    (DX=00FFh special) | BL = Max function     | comm port.  When DX = 00FFh,  then    |
  52. |       |               |                       |      supported,  not  | any initialization needed to make the |
  53. |       |               |                       |      incl. 7Eh - BFh  | keyboard/display available for FOSSIL |
  54. |       |               | {BX = 4F50H           | BH = FOSSIL revision  | use should be performed.  BX = 4F50h  |
  55. |       |               |  ES:CX = ^C flag byte}|      level of driver  | signals that ES:CX points to a flag   |
  56. |       |               |    (Optional)         |                       | byte in the application that the      |
  57. |       |               |                       | DTR raised on port    | driver should increment when its      |
  58. |       |               |                       | BaudRate preserved    | keyboard routines detect a Ctl-C.     |
  59. |       |               |                       |                       |                                       |
  60. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  61.  
  62. FOSSIL Function Chart,  Version 5,  February 11,  1988                                                     Page 2
  63. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  64. | Code  |   Function    |  Function Parameters  |  Returned by Function | Explanation                           |
  65. +-------+---------------+-----------------------+-----------------------+---------------------------------------+
  66. |       |               |                       |                       |                                       |
  67. |  05h  | Deinitialize  | DX = Port number      | None                  | Disengages driver from comm port.     |
  68. |       | driver (port) |    (DX=00FFh special) |                       | Should be done when operations on the |
  69. |       |               |                       | DTR not changed       | port are complete.  IF DX = 00FFh,    |
  70. |       |               |                       |                       | then the initialization that was      |
  71. |       |               |                       |                       | performed when FOSSIL function 04h    |
  72. |       |               |                       |                       | with DX = 00FFh should be undone.     |
  73. |       |               |                       |                       |